public class FunctionButton {
    private Command command;
    private String name;

    public FunctionButton(String name) {
        this.name = name;
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public void click() {
        System.out.print(name + ": ");
        command.execute();
    }
}
